package com.sky.controller.admin;

import com.sky.entity.Setmeal;
import com.sky.result.Result;
import com.sky.service.OrderService;
import com.sky.service.SetmealService;
import com.sky.vo.BusinessDataVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/admin/workspace")
@RestController
public class WorkSpaceController {

    @Autowired
    private OrderService orderService;
    @GetMapping("/businessData")
    public Result<BusinessDataVO> getBusinessData() {
        BusinessDataVO businessData = orderService.getBusinessData();
        return Result.success(businessData);

    }


}
